After you file

Thanks for your answer. Just to be sure I understand. I should e-file a 1040-x through Turbotax saying in the explenation of changes that I should´ve done a 1040NR? And then go in Sprintax and file a 1040NR document? How does that work to submit the 1040NR and not get the money again, don´t I´ve to submit both forms together and then pay them back the amount I owe them? Also, in my 2022 form I added my 2021 W2 and I think I wasn´t supposed to do that either, how do I amend that? Hope you can help me I´m very confused. Thank you