We got rid of coal power where I live:
https://www.ontario.ca/page/end-coal
It can be done and the stakes here are too high for this handwringing. We didn't let slave ship workers stop emancipation from happening.
This subject is quite close to home to the HN crowd, since software is capable of replacing a large number of human workers. Not even with AI, just by simplifying and streamlining paperwork-heavy administrative tasks. And yet our industry does nothing to protect the people who's work we displace.
Of course, there is still lots of work to do, even if you don't have a job, taking care of yourself and your family. Plus, if we extend the notion of family, an aging population is going to need lots of labor-intensive help, so that's something else they can do.
https://berniesanders.com/issues/green-new-deal/
A just transition for workers. This plan will prioritize the fossil fuel workers who have powered our economy for more than a century and who have too often been neglected by corporations and politicians. We will guarantee five years of a worker’s current salary, housing assistance, job training, health care, pension support, and priority job placement for any displaced worker, as well as early retirement support for those who choose it or can no longer work.