function generateNetworkRecords(partialRecords, timeOrigin) {
  const timeOriginInMs = timeOrigin / 1000;
  return partialRecords.map(item => {
    const record = {
      protocol: 'http',
      failed: item.failed || false,
      statusCode: item.statusCode || 200,
      requestMethod: item.requestMethod || 'GET',
      finished: typeof item.finished === 'undefined' ? true : item.finished,
      networkRequestTime: item.start + timeOriginInMs,
      networkEndTime: item.end === -1 ? -1 : item.end + timeOriginInMs,
    };
    return /** @type {LH.Artifacts.NetworkRequest} */ (record);
  });
}
@param {Array<Partial<LH.Artifacts.NetworkRequest> & {start: number, end: number}>} partialRecords
@param {number} timeOrigin
@return {LH.Artifacts.NetworkRequest[]}