Yes, IMF credits come with structural adjustment proposals, which, I guess Turkey did post-2001 and the next 10 years of not-so-bad growth was thanks to the very bitter program Turkey carried out under the previous government.
But, the previous government paid the price for being pragmatist, and the following Islamist government (current one) both took advantage of the growth and also plundered it for more than a decade.
Now, there is yet another, bigger crisis right at the door.
Worse yet, back in 2001, Turkey foreign policy was normal, or even outstanding, hence relations with right and left of global politics were good.
Now there is hardly any meaningful country left for Turkey to weather this storm. And Turkey is not China or even Iran, a little sanctions or even warning by the US will bring its economy into a total collapse.
Turkey is not a sincere actor. Not any more. Neither China/Russia, nor US/NATO can trust it. Only take advantage of it. Which is sad. What is left for Turkey is countries like Somalia in which the current president goes to pick up some little boys to adopt or build some mosques.
Turkey used to be one the textbook example of good, balanced foreign policy.
Economy is never separate from foreign policy, especially from neighborhood policy.