Wits means "the ability to think and act quickly and intelligently, especially in a difficult situation."