In conclusion, this study provides evidence that immune regulation participated in the mechanism of action of YXT in treating TS and suggests that OPRM1 and VIM could be potential targets for regulating the immune microenvironment. This evidence concerns the gene VIM and Timothy syndrome.