To use the Posts API, install the @wix/forum package using npm or Yarn:
@wix/forum
npm install @wix/forum
or
yarn add @wix/forum
Then import { posts } from @wix/forum:
{ posts }
import { posts } from "@wix/forum";