If you don't have active infection,but had TB in the past,you will take 3 months or so.
You might be referred to the TB clinic where they will check for active infection.If they don't find any active infection,you will be able to continue doing your job,but they will prescribe preventive medication for 6 months.This is a general situation for office going employees not in certain professions like healthcare
So you need to check if the medical laws for airlines are stricter or not as you deal with public.