Surgery is one option.... It's best to see an oral and maxillofacial surgeon so they can determine your best course of treatment.
TMD is usually treated with a mouth guard. Different types are available and your dentist can determine what’s best for you. Botox can help if it is muscular in nature. Anti-inflammatory and warm compress helps in conjunction with mouth guard. The last resort is surgery and it is not always successful. I would recommend conservative treatment with a guard first.
Hope it helps.