Yes, Firebase Functions themselves could be written in JavaScript only.
But you could write them in KotlinJS and transpile the code to JavaScript.
With Kotlin Multiplatform, you may even share some model definitions between your mobile app and Cloud Functions.