You were not an IL resident, at any time in 2024. You were a full year WI resident. Your time in IL was only a temporary absence from your resident state (WI). You file a non-resident IL return and a resident WI return.
That's a good thing TurboTax doesn't handle a "rotating residency" situation very well.