You will need to file a North Dakota tax return as a resident (assuming you qualify as one - see below); and California tax return as a non-resident (assuming that you didn't live there all year in 2023).
North Dakota ND Tax - Resident
In most cases, if you live in state that has income tax, you will get a credit on your tax return for the state you live in for part or all of the tax that you pay to the other state.
Once you've determined that you need to file a nonresident state return, the first thing you want to do is make sure you've filled out the Personal Info section correctly:
After you finish your federal return, you'll automatically move to the State tab, where you'll see your nonresident state(s) listed in addition to your resident state.
Tip: To ensure accurate calculations, always complete the nonresident return first if filing in multiple states because your resident state might give you a credit for any taxes paid in that situation.