Big tech companies aren't patriotic, they work for their shareholders. They don't care about US or Swiss citizens. They'll open offices wherever there's a high density of talents, and where they can import qualified foreign workers. I'm pretty sure there aren't many SWEs from Switzerland at Google Zurich offices. If the US wants to restrict visas, automatically a portion of these jobs will be moved abroad.