docs: async function getTelemetryPings(options) {
    // type is String or Array
    const { n, timestamp, headersOnly } = options;
    let { type } = options;
    Components.utils.import("resource://gre/modules/TelemetryArchive.jsm");
    // {type, id, timestampCreated}
    let pings = await TelemetryArchive.promiseArchivedPingList();
    if (type) {
      if (!(type instanceof Array)) {
        type = [type]; // Array-ify if it's a string
      }
    }
    if (type) pings = pings.filter(p => type.includes(p.type));
    if (timestamp) pings = pings.filter(p => p.timestampCreated > timestamp);
  
    pings.sort((a, b) => b.timestampCreated - a.timestampCreated);
    if (n) pings = pings.slice(0, n);
    const pingData = headersOnly
      ? pings
      : pings.map(ping => TelemetryArchive.promiseArchivedPingById(ping.id));
    return Promise.all(pingData);
  }