You cannot use online TurboTax to prepare a 2022 tax return. Online is only for 2023 returns. And....you say you "worked in USA" in 2022. If you are a non-resident alien you cannot use TurboTax to prepare the 1040NR that you need. I am not sure if past year software is available with sprintax---but here is a link.
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
Here is a link to the 2022 Form 1040NR and instructions for it
https://www.irs.gov/pub/irs-prior/f1040nr--2022.pdf
https://www.irs.gov/pub/irs-prior/i1040nr--2022.pdf
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**