Doctors will prescribe several different medications. Which are needed to kill the TB bacteria. They will also do different type of exams on you. You will need to medication for at least 6 months to nine months. But also it depends on you and what antibiotics you take and how strong your immune system is.