Add jsdoc for defineScope