Extensions can define macros (named "constants" in the UI) and these work akin to how ones defined in the project do.
If you target an extension ( some.extension.gmx._ ), it will be auto-populated, but you might need to reload the project in GM the first time this happens. You should not have to manually copy anything.