I filled it out as a resident but I am an unresident.How can I change it?
To change your state residency in TurboTax Online:
When you get to the state section of your return, make sure that your state return's residency status is appropriate for the period ending December 31, 2023.
Or.....do you mean you are non-resident alien and need to use Form 1040NR to file your tax return?
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
Just to elaborate, you would need to contact Sprint Tax to amend your 1040 return and then transition to a 1040 NR.