Tax for foreign independent contractor
I have been working for a US company under H1B visa for a few years. In mid 2021 I stopped working and moved back to my home country. Starting 2022, my employer wants to hire me as a foreign independent contractor then bring me back to the US with H1B later in 2022. Based on Substantial Presence Test, I will be nonresident alien during the time staying in my home country then become resident alien again after I go back to the US.
Do I need to report the income for the period of I'm staying overseas and working as a foreign independent contractor when filing 2022 return? Is there any arrangement regarding tax my employer or I should set up now? Do I need to ask for any document? Thanks