Part Year and Non Resident Tax Filing - New Jersey

We lived in New Jersey until June 22, 2023 and then domiciled/relocated to South Dakota. My husband worked and still does for the same company based out of New Jersey.  How do we break up the taxable income for New Jersey for tax filing purposes?