Type 2 is called Insulin Resistance - basically your pancreas works fine but the cells in your body stops responding to the hormone that tells it to remove glucose from your blood leading to a dangerous build up.
I use a drug called Metformin daily which slows down my digestive tract (you feel fuller after a meal longer like Ozempic), lowers the uptake of glucose in your gut and lowers glucose production in your liver.
That and a low carb diet is essential.