async write(type, data) {
        if (this.writeDisabled) {
            return null;
        }

        return fs.writeFile(this.storagePaths[type], JSON.stringify(data, null, 4));
    }
@param {'urls'|'resources'} type of data to persist
@param {Object} data - data to be persisted
@returns {Promise<Object>}