To use the WidgetSettings API, install the @wix/assistant-widget package using npm or Yarn:
@wix/assistant-widget
or
Then import { widgetSettings } from @wix/assistant-widget:
{ widgetSettings }