What does ''Use your wits'' mean?
It means to use your intelligence and ability to reason rationally.
Pope of the Dictionary.com Forum
Often when having to respond rapidly to things you hadn't anticipated.
Note that your "wit" is a different thing.
Wit is a form of intelligent humour, the ability to say or write things that are clever and usually funny.