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. Here, OPRM1 is linked to Timothy syndrome.