To use the AppInstances API, install the @wix/app-management package using npm or Yarn:
@wix/app-management
or
Then import { appInstances } from @wix/app-management:
{ appInstances }