Could you share the nature of your liver issues?
Choline and Inositol, 3 grams per day, will help immensely with your liver issue. It will also have some cognative benefits.
As for your pain and brain fog, get a full thyroid panel done. Do NOT accept the TSH test as an indicator of your thyroid health. Make your doctor test for T4, T3, and RT3 levels. If they won’t, go get your own tests run. I was undiagnosed as hypothyroid for decades, because nobody ever ran tests to show how deficient I was in T3. I had brain fog, trouble sleeping, body pain, etc. When I took my first dose of T3, about a half hour later I literally felt like I woke up from 20 years of sleepwalking.
I am so sorry to hear that. I am going to pray for you, asking God to take away your pain and discomfort and heal you. I pray that our merciful Father will give you peace and strength and allow you to fully enjoy life one more. Please take care!