That's a good argument for voluntary individual contributions, but not for foreign aid.
The purpose of government is advancement of the common good of the citizens that form the polity. The good of people outside of the polity is beyond its scope and responsibility. Any aid to or alliance with a foreign nation can only be justified with tangible benefits at home.
This has been a long argument, eg “ordo amoris” — 700 years (Aquinas) to 1600 years (Augustine) in Christian philosophy.
The split is aligned with politics [1]; and the two sides can’t even agree on which direction demonstrates a lack of empathy. To some people, it’s moral to take from your neighbor and give to a stranger; to others, that’s antisocial behavior.
Solving problems abroad can improve economic outcomes locally - a good example with US Foreign Aid is how it was used to purchase American products, employ American Workers, and then improve the lives of folks internationally who could then (you guessed it!) go on to purchase American products, leading to American business growth and more hiring. Much of our aid contracts have stipulations making sure the money ends up back in America for example military aid contracts to Ukraine stipulating they would buy American weapon systems.
Solving problems abroad can prevent them from landing on your doorstep. I'd rather fight wars overseas, protecting economies that buy American products, then let the problems fester, cripple international trade, and risk reaching the American continent (9/11).
All I ask is you look one layer deeper into these problems rather then buying the news headline. You are having your pocket picked if you believe Elon Musk or other parts of the current administration are acting in the nation's interest.
The purpose of government is advancement of the common good of the citizens that form the polity. The good of people outside of the polity is beyond its scope and responsibility. Any aid to or alliance with a foreign nation can only be justified with tangible benefits at home.