Important note because I saw some people advising mask usage and because I know some shit about TB
While you should wear a mask for other airborne diseases (covid, influenza, H1N1 etc), tuberculosis is transmitted through much much much smaller particles than these examples.
A mask will protect you from these but they do not work with TB. You need hospital-grade equipment to protect yourself from TB
Do your BCG shots, do your mandoux tests, avoid unpasteurised shit (yes, you can get TB from that), avoid cluttered and poor ventilated areas.
TB is curable with very strong antibiotics. If prescribed, take them UNTIL A HEALTH PROFESSIONAL TELLS YOU TO STOP. Do not ration them, do not stop early. Yes, the treatment can last for over a year. If you stop, you will get TB again and this time the antibiotics will not work.