crawls out of a manhole
Aaaaannnnddd we can do district heating and cooling with combined heat and power plants! Denser cities are well suited for a shared heating/cooling grid that's a lot cheaper and efficient than owning your own equipment for heating and cooling. It also leaves more rooftop available for greenspace or for solar panels.
Additionally you can use combined heat and power (CHP) plants to make the heat needed for the system, including using heat to make cooling with absorber chillers.
The Danes have one of the most advanced thermal grids in the world so far by complexity. They even use heat pumps to recover waste heat from sewage, data centers, and supermarket fridges/freezers (which actually makes them far more energy efficient btw since it's a smaller thermal lift, and the pumped energy is sold into the grid to make money instead of just being waste)
We could literally heat and cool the entire world but we dump it all as waste heat 🫠