Maybe instead of killing "work visa programs" we can kill "low wages" for foreign workers?
How one country can do it?
It is not one countries responsibility, it is every countries responsibility to retain their own talent and grow their own tech-sector.
You cannot force a country to do anything. They have to want to do it.
> If, for example, country don't have resources to do itself?
That's a difficult question without a simple answer. Ideally, countries would build themselves up, acquiring the resources to have their own industries.