For many years, FAANGs and the likes have made billions across the world without hiring any significant amount of people in nearly all of those economies. Zero profit for the non-US countries. Take a random one, Denmark. Google and Apple sure have been making great money off of the Danes. What has Denmark gotten in return for it? Nothing. It's all gone towards (generally US) investor returns, and US salaries.
Sure, make it illegal for US companies to hire boatloads of people abroad. At the same time, other countries should ban those US companies from operating there.