You will need to file an Illinois Non Resident Tax Return and a Wisconsin Resident Tax Return.
Because these states have tax reciprocity, you only owe tax to Wisconsin. You will file the Illinois return for a refund of the taxes withheld. Report your state sourced income as $0. You need to prepare this return before your Wisconsin return.
When you file your Wisconsin return, you will receive a state tax credit for the taxes paid to Illinois.