The best way to stop heating up the planet is to stop burning fossil fuels and dumping more and more CO2 into the atmosphere. As soon as that happens, the Earth’s temperature will stop rising. Then, over the decades and centuries after that, as long as future humans don’t go back to burning fossil fuels and dumping more CO2 into the atmosphere, the Earth’s temperature will slowly decline.