Moving expense deduction 2021 or 2022

Hi,

 

I moved to Canada from California (crossed the border on Jan 1, 2022, but paid the majority of moving expenses (loading, shipping, packing materials purchase, flights in 2021). I kept my U.S. job and worked remotely until mid 2022. Do I get to deduct any moving expenses? And if so, would it be for the 2021 or 2022 tax year? I am filing my 2021 taxes currently as I had applied for an extension. 

 

thank you