Wisdom is knowing the long-term consequences of your actions. Wisdom applied to external problems is judgment. They’re highly linked; knowing the long-term consequences of your actions and then making the right decision to capitalise on that.
Wisdom is the discarding of vices and the return to virtue, by way of knowledge.