You need form 1040NR (or 1040NR-EZ) and form 8843.See Publication 519 (2022), U.S. Tax Guide for Aliensu00a0u00a0 for some help as well as Page on irs.gov. You may have to file a nonresident state tax return as well but that depends on your state.Be careful when using web-based software (such as TurboTax) because not all of them support nonresident forms.