From Arabic تَمَام (tamām, “complete, finished”) and/or the related إتْمَام (ʔitmām, “completion, finishing”). Both would have merged in Maltese tmiem.
tmiem m