Type 2 diabetes is a metabolic condition. Drugs (including TKI's) can exacerbate the condition, but TKI's alone are unlikely to be the sole cause.
In simple terms, the liver and the pancreas get out of whack. The liver is often at the root of diabetes type 2. Fat in the liver prevents the liver from responding to insulin properly. This causes excess sugar to be produced and/or released by the liver into the blood. In addition, as we age, the ability of the pancreas to produce insulin can be an additional factor in that more insulin is needed to get the "liver's attention" to stop releasing sugar and the cells which produce insulin over time burn out. The liver takes extra sugar from the gut (eating sweets, processed carbs, etc.) and stores it in the liver. Once the sugar is stored to the max, extra sugar is turned into fat. This fat tends to store in the liver itself. Alcohol does the same thing - it is processed into fat and stored in the liver - first. As the body calls for more sugar, the liver releases the stored sugar before it releases fat. The solution to this problem is straight forward - stop eating sugar.
Steps can be taken to reverse the type 2 diabetic process. Clearing out the fat from the liver increases insulin sensitivity and improves sugar control. Fasting can certainly do that, but a diet low in carbohydrates will also cause the liver to make less fat in the first place. In addition, exercise - especially high intensity sweat producing exercise creates a sink for excess sugar to be burned and causes the liver to clear out its excess sugar and begin to metabolize fat. Working muscles love sugar and will burn it if available. But the key organ in all of this is mostly the liver. Once stored sugar is used up, the liver will start to metabolize the fat it has and make sugar (fat + protein = sugar). The body must have about 4 grams of sugar at all times. If you are not eating sugar, the liver will make it (gluconeogenesis). A sure way to know you are in this state is if ketones are present in your blood. Ketosis means you are burning fat for fuel. And this fat is coming from your liver first. This is a good thing. The liver put the fat there and the liver can get it out of there as well.
Having an ultrasound scan done of your liver will almost certainly show you if you have a 'fatty liver'. Getting fat out of the liver will go a long way to reversing type 2 diabetes for most people before it becomes irreversible.
It is very true that cutting calories (i.e. losing weight) helps the liver clear out its fat. Getting fat out of the liver helps it to pay attention to insulin and thereby regaining sugar control.