If you know you have TB, get medical treatment. This includes taking antibiotics for as many as 3 to 12 months or more.