code: function toComments(text, level) {
    var indent = '';
    var i;
    for (i = 0; i < level; i++) {
      indent += '  ';
    }
    if (text == null || text.length === 0) {
      return indent;
    }
    const lines = text.trim().split('\n');
    var result = '\n' + indent + '/**\n';
    lines.forEach(line => {
      result += indent + ' *' + (line === '' ? '' : ' ' + line) + '\n';
    });
    result += indent + ' */\n' + indent;
    return result;
  }
docs: Returns a multi-line comment for the given text