Unfortunately, neither ECMAScript nor TypeScript currently support macros.
While there is a proposal for Decorators that aims to provide similar functionality to macros, it is still in the early stages of development.
Although there are no official proposals to add Macros to ECMAScript, the idea has been discussed due to the influence of Scheme designers on the committee.
In the ECMAScript community, the use of source-to-source compilers like Babel is common to achieve similar results as macros in languages like Julia, Scheme, Rust, Boo, and Nemerle.
Third-party libraries like Sweet.js do offer some macro capabilities through source-to-source transpilation for ECMAScript.