What is the recommended way to import/export annotations in PDF.js Express?

The recommended way to import/export anntotations are with the importAnnotations and exportAnnotations APIs.

An overview on import/export can be found here.