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