If I just became permanent residence of US in Sep 2022, should I report all income earned before (and as nonresident alien?) or should I ignore all income earned before?

Also after becoming LPR we immediately left US and lived in home country for 2 months, my employment continued during that time. Now we are in US but still working for this company remotely. Should I count this two months outside US as US resident alien ?