import type { App } from "obsidian" ; type Plugin = { settings : any ; } ; export function findPlugin ( app , pluginId ) { const plugin = ( app as any ) . plugins . plugins [ pluginId ] ; if ( plugin ) { return plugin ; } return null ; } export function isPluginInstalled ( app , pluginId ) { const plugin = findPlugin ( app , pluginId ) ; if ( plugin ) { return true ; } return false ; }