Tax implications for non-US resident who has bank account in the US?

I'm thinking about opening a US bank account as non-resident. I've already researched a bit on the topic and am aware of some of the requirements.

The reasons I want to open a US bank account are:

  • I am a freelance software engineer and have clients in the US. Right now, I receive payments via Wise, transfer some of that to my country and transfer another part to IBKR for investing.
  • I have invested $40k+ in the US stock market and want a safe place to deposit withdrawn cash if necessary.

What would be the tax implications given my activities as freelance contractor and investor if I open this account and start depositing money to it?

Edit: I’m also thinking about asking for a credit card, what are some good options out there?