Functions can be imported by clicking the 'Export Function' in the left side-menu.
Functions are exported and saved as an encoded .enc json file that can be re-used by clicking the 'Import Function +' button in the left-side menu of the Function tab.

Importing and exporting functions can be done between bots on the same tenant but can also be done outside your account. The free subscription account doesn't support exporting of functions.