I'm planning to come back to the United States in October. I've lived in Japan for most of the time in 2023, but I visited Guam for 2 days in March 2023. Long story short, I've lived in Japan for a long time and I've been tax except from paying any taxes to the IRS.
My question is, do I need to pay taxes to the IRS on what I earned in Japan when I file my 2023 taxes? The reason why I'm asking is because if I'm right, I need to pay taxes to the IRS if I stayed more than 30 days in the US. Also, since I'm coming back in October and will stay in the US till the end of the year, It will be more than 30 days.