PD-1+CD8+ TRM cells were enriched in TB tissues of HBV+ HCC patients. Here, PDCD1 is linked to tuberculosis.