To use the Tasks API, install the @wix/crm package using npm or Yarn:
@wix/crm
or
Then import { tasks } from @wix/crm:
{ tasks }