Typescript cannot find cac types after switching modueResolution to NodeNext . I think a .d.mts file should be added to avoid this error. 