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