To use the AccountDetails API, install the @wix/email-marketing package using npm or Yarn:
@wix/email-marketing
or
Then import { accountDetails } from @wix/email-marketing:
{ accountDetails }