part year MA resident

Lived as retiree in MA but moved and established residency in WA state this past spring.  Would MA income tax be calculated on 100% of dividends and interest earned on mutual funds in 2022, or would it be calculated as a percentage based on days living as a MA resident in 2022?