Can I reuse JS hit template for getObjects results? Missing the HTML function

So I have a separate JS file for my hits results, starts like this:

const item = function (hit, { html, components, sendEvent }) {

All good, works a treat. However, I want to use this template to render the results I get from a getObjects() call so I only have to work with one hits template.

But the functions/params passed in with the hit, {HTML, components, sendEvent} are not present. Is there a way to provide these so it would work?