Deductions & credits

Thanks PK, 

 

Apologies if my question was not clear. I understand what a resident alien and non resident alien for tax purposes are for tax purposes. My question is what's my status in 2023. I was living in the US full time from 2015 to Mid-2022 when I moved out of the country after my visa expired. I filed a dual status return in 2022 given I moved out Midyear and my visa status expired although I meet the SPT for the first half of 2022. 

Do I need to file dual status return for 2023, a resident alien or non resident alien? 

Although I left the country in July 2022, would the days I was present in the US the first half of 2022 and the years prior count toward determining the SPT for 2023?

 

Please see below for more info

 

Country and citizenship: Guinea 

F-1 student from July 2015 to May 2021

F-1 OPT: From July 2021 to July 10, 2022

July 10, 2022: F-1 OPT Visa expired and I left the country.

Returned to the US on H1B: October 2023