I've been trying to get a discussion on exactly this started for literally 20 years, and I either get blown off, or others toss around a few platitudes, and just don't seem to want to think about it - it's too big an issue.
I'd say, to start, we could use Alaska as a model: they have a reverse income tax from the oil, to taxpayers.
My thoughts are that once a company reaches a certain size - say, 10% of the local economy, IN ADDITION to the current taxes, they *ALSO* pay voting shares of stock, to be held in trust by a government board. And these stocks be apportioned, depending on how much of the locale, state, or national economy the company effects (um, Mr. Intel?) to the local, state, and federal boards.
I said voting, so the locality has some measure of control over "oh, let's move to another state, we'll pay less taxes, we don't care about family, community, or neighborhood, they've got nothing on ROI". (vide Detroit).
I mean, if dividends are great for the millionaires and billionaires, why not for us, too? And, of course, government-held VOTING stocks also controls a lot more... including how much that CEO gets paid... oh, wait: *do* let's automate those jobs. Most execs move in 3-5 years (speaking statistically), and they don't care what happens to the company after that, even if it crashes and burns, because They Improved ROI during their turn there.... If we use AIs, they'll be stuck with the company forever, and will be more interested in keeping it a going concern.