TurboTax does not support 1040NR. If you are a non-resident alien, you cannot use TurboTax.
NON RESIDENT ALIEN
If you are a non-resident alien, your return must be filed on Form 1040NR, which cannot be prepared using TurboTax. You can use TT’s partner, sprintax:
https://www.sprintax.com/non-resident-alien-tax-1040nr-turbotax.html