code: function getAppIconListByPid(pidArray, opts) {
    opts = getOptions(opts);
    return Promise.all(
      pidArray.map(pid => getAppIconByPid(pid, opts).catch(err => {
        if (opts.failOnError === true) {
          return Promise.reject(err);
        }
        return null;
      }))
    ).then(
      result =>
        result.map((icon, i) => ({
          pid: pidArray[i],
          icon
        }))
    );
  }
docs: Find icons for a list of running apps (by their PIDs)
  @example
  const { getAppIconListByPid } = require('node-mac-app-icon');
  
  getAppIconListByPid([814, 20134, 503], { size: 512 }).then(res => {
  console.log(res); // array of { pid: ..., icon: ... }
  });
  
  @param {number[]} pidArray App PID (Process ID)
  @param {Options} opts
  @returns {Promise<ListResult[]>} Buffer containing image data