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