How to file state taxes? Income generated in one state, lived in another

I lived in AR for the entirety of 2022. I was paid in IL and all taxes withheld for 2022 went to IL. How do I file my state taxes? My current approach is file a non-resident IL return, and an AR resident return. How should I get credit for the IL taxes already withheld on my AR return?