docs: async function loadNimiq() {
      // eslint-disable-next-line no-return-assign
      return __nimiqLoaded || (__nimiqLoaded = new Promise(async resolve => {
          // Load web assembly encryption library into browser (if supported)
          await Nimiq.WasmHelper.doImport();
  
          switch (CONFIG.NETWORK) {
              case Constants.NETWORK.DEV:
                  Nimiq.GenesisConfig.dev();
                  break;
              case Constants.NETWORK.TEST:
                  Nimiq.GenesisConfig.test();
                  break;
              case Constants.NETWORK.MAIN:
                  Nimiq.GenesisConfig.main();
                  break;
              default:
                  throw new Errors.InvalidNetworkConfig();
          }
  
          resolve();
      }));
  }