per https://firebase.google.com/docs/storage/admin/start below code returns a reference to bucket defined in Google Cloud Storage client libraries
var admin = require("firebase-admin");
var bucket = admin.storage().bucket()
but the second line fails in firebase functions (however admin.database() works), my guess is Google Cloud Storage client libraries is not properly imported, according to https://cloud.google.com/storage/docs/reference/libraries it can be done by
npm install --save @google-cloud/storage
const Storage = require('@google-cloud/storage');
but how to associate the Storage with the bucket created from admin?