Serverless.ts : How to use !Sub or Fn::Sub when resolving pseudo parameters ${AWS:AccountId} in typescript?

hi there,
i can’t get my head around on how to reference the new built in pseudo parameters support in a serverless.ts file so that the ${AWS:AccountId} gets substituted correctly within a serverless.ts (typescript) config file.

Thanks for any help and suggestions: