See this link:
https://www.irs.gov/individuals/international-taxpayers/nonresident-aliens#:~:text=If%20you%20are%20...