How do I properly file taxes if I lived in IL from January - June 2023 and then moved to California from June 2023 to present?

I don't want to end up owing California taxes if I file something incorrectly.