The customer and taxpayers are generally the same people here.
So, knock on effects can dwarf direct effects. Tax foreign computer components at some insane rate and perhaps you get a domestic market but you could also see companies start moving their US data centers to Canada and Mexico. Which then has it’s own economic disadvantages.