Tumor-infiltrating NK and CD8+ T cells depend on kinase-active TYK2 for the expression of gene signatures induced by the tumor microenvironment. Here, TYK2 is linked to neoplasm.