Tesla is actually a battery and electric car company that makes environmentally friendly cars and grid storage, and is probably towards the top of the list for companies who have reduced CO2 output in the world.
For you personally, I'm guessing your lifestyle depends very heavily on everyone in the apartments and buildings around you, and the grocery stores that supply you, and the roads that they move goods over, and the materials they manufacture in order to distribute power and water and collect sewage....so unless all of them have transitioned, I think you're overestimating your resilience to the loss of fossil fuels.
Most clothes, food, medicine, every bit of plastic you own, the tools used to make your heat pump, the rebar in your apartment walls, etc. none of this exists without fossil fuel, or at least not at this price/scale
You are not wrong, but there is no reason to assume that things can't change. A heat pump irrespective of the material it's made of will be better than a gas heater over its life.
Making and using a modern solar panel emits up to 44 grams of CO2 equivalent greenhouse gas per kWh over its lifetime as opposed to up to 1000 grams for fossil fuel generators.